package com.caregiver.watch.business.data.controller;

import com.caregiver.watch.business.data.service.DeviceDataService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Tag(name  = "CallLogController", description = "通话记录")
@RestController
@Slf4j
@RequestMapping("/call_log")
public class CallLogController {


    @Autowired
    private DeviceDataService deviceService;

    @PostMapping(value = "upload")
    private void uploadSosCallLogData(HttpServletRequest req, HttpServletResponse resp) {
        deviceService.uploadSosCallLogData(req, resp);
    }
}
